//
//  WrappedJsval.h
//  iCodeMacRun
//
//  Created by Andrew Barry on 18/03/09.
//  Copyright 2009 Barry Computer Services. All rights reserved.
//

@interface WrappedJsval : NSObject {
	@public jsvalue val;
	jscontext *_cx;
}
+(WrappedJsval *) wrap: (jsvalue) v withContext: (jscontext *) cx;
-(id)initWithVal: (jsvalue) val withContext: (jscontext *) cx;
-(WrappedJsval *) get: (NSString *) field;
-(WrappedJsval *) invoke: (NSString *) name args: (NSArray *) args;

@end
